package cn.itsource.org.service;

import cn.itsource.basic.utils.PageList;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

/**
 * 用户业务层
 */
public interface IEmployeeService {

    //查询所有部门数据
    List<Employee> findAll();

    //根据id查询一个部门对象
    Employee findOne(Long id);

    //分页查询
    PageList<Employee> findPage(EmployeeQuery query);

    //查询所有部门经理
    List<Employee> findManagers();

    //新增或修改
    void saveOrUpdate(Employee employee);

    //删除
    void delete(Long id);



}
